package springdidemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import springdidemo.demos.Student;
import springdidemo.demos.StudentController;
import springdidemo.demos.UserController;

@SpringBootApplication
public class SpringDiDemoApplication {

    public static void main(String[] args) {
        ApplicationContext context=SpringApplication.run(SpringDiDemoApplication.class, args);

//        ApplicationContext context=SpringApplication.run(SpringDiDemoApplication.class, args);
//        UserController u=(UserController)context.getBean("userController");
//        u.say();
//        StudentController u=(StudentController)context.getBean("studentController");
//        u.say();
    }

}
